package edu.hcmiu.portal.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;


/**
 * <a href="user_testSoap.java.html"><b><i>View Source</i></b></a>
 *
 * <p>
 * ServiceBuilder generated this class. Modifications in this class will be
 * overwritten the next time is generated.
 * </p>
 *
 * <p>
 * This class is used by
 * <code>edu.hcmiu.portal.service.http.user_testServiceSoap</code>.
 * </p>
 *
 * @author Brian Wing Shun Chan
 *
 * @see edu.hcmiu.portal.service.http.user_testServiceSoap
 *
 */
public class user_testSoap implements Serializable {
    private String _user_id;
    private String _user_name;

    public user_testSoap() {
    }

    public static user_testSoap toSoapModel(user_test model) {
        user_testSoap soapModel = new user_testSoap();

        soapModel.setUser_id(model.getUser_id());
        soapModel.setUser_name(model.getUser_name());

        return soapModel;
    }

    public static user_testSoap[] toSoapModels(user_test[] models) {
        user_testSoap[] soapModels = new user_testSoap[models.length];

        for (int i = 0; i < models.length; i++) {
            soapModels[i] = toSoapModel(models[i]);
        }

        return soapModels;
    }

    public static user_testSoap[][] toSoapModels(user_test[][] models) {
        user_testSoap[][] soapModels = null;

        if (models.length > 0) {
            soapModels = new user_testSoap[models.length][models[0].length];
        } else {
            soapModels = new user_testSoap[0][0];
        }

        for (int i = 0; i < models.length; i++) {
            soapModels[i] = toSoapModels(models[i]);
        }

        return soapModels;
    }

    public static user_testSoap[] toSoapModels(List<user_test> models) {
        List<user_testSoap> soapModels = new ArrayList<user_testSoap>(models.size());

        for (user_test model : models) {
            soapModels.add(toSoapModel(model));
        }

        return soapModels.toArray(new user_testSoap[soapModels.size()]);
    }

    public String getPrimaryKey() {
        return _user_id;
    }

    public void setPrimaryKey(String pk) {
        setUser_id(pk);
    }

    public String getUser_id() {
        return _user_id;
    }

    public void setUser_id(String user_id) {
        _user_id = user_id;
    }

    public String getUser_name() {
        return _user_name;
    }

    public void setUser_name(String user_name) {
        _user_name = user_name;
    }
}
